package org.teach.study.springmvc.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.teach.study.springmvc.vo.User;

/**
 * <b>UserController。</b>
 * <p><b>详细说明：</b></p>
 * <!-- 在此添加详细说明 -->
 * 无。
 * 
 * @version 1.0
 * @author mex2000
 * @since 1.0
 */
@Controller
@RequestMapping("/user")
public class UserController extends BaseController {

	@RequestMapping("/loginUser")
	public @ResponseBody User getLoginUser(HttpSession session) {
		User user=(User)session.getAttribute("user");
		return user;
	}
}
